import javax.swing.JFrame;
import javax.swing.JLabel;

/**
 * Simple demo of Java Swing GUI toolkit.
 * 
 * @author charlieg
 * @author <a href="mailto:charlieg@cis.udel.edu">charlieg@cis.udel.edu</a>
 * @author <a href="http://www.cis.udel.edu/~charlieg">www.cis.udel.edu/~charlieg</a>
 * @version 1.0, &nbsp; 22 Sept 2009
 *
 */
public class HelloWorldGUI {
	
	/**
	 * Creates & displays a GUI window containing a single label.
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		// set up the window
		JFrame frame = new JFrame();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		// add a label
		JLabel label = new JLabel("Hello World!");
		frame.getContentPane().add(label);
		
		// show the window
		frame.pack();
		frame.setVisible(true);
	}
}
